package com.feifan.monthhelper.bean.db;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import android.arch.persistence.room.TypeConverters;

import com.feifan.monthhelper.db.conventer.DateConverter;

import java.util.Date;

/**
 * 月经痛感
 */
@Entity(tableName = "pain_feel")
@TypeConverters({DateConverter.class})
public class PainBean {
    @PrimaryKey
    public Date date;
    public int level;

    @Ignore
    public PainBean(Date date, int level) {
        this.date = date;
        this.level = level;
    }

    public PainBean() {
    }
}
